﻿<%@ Page Title="Admin Køb" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="adminExchangePurchase.aspx.cs" Inherits="UCNKompetenceBors.Admin.adminExchangePurchase" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="adminWrapper" class="contentSmallWrapper floatLeft">
        <div id="adminSubMenuBox" class="submenuBox floatLeft">
            <div class="subMenuBoxContent">
                <ul>
                    <li>
                        <asp:HyperLink ID="hyLinkAdminDashboard" runat="server" Text="Admin Dashboard"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hyLinkUserHandling" runat="server" Text="Brugerhåndtering"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hyLinkAdminExchange" runat="server" Text="Køb og Salg"></asp:HyperLink>
                        <ul>
                            <li>
                                <asp:HyperLink ID="hyLinkAdminSale" runat="server" Text="Salg"></asp:HyperLink></li>
                            <li>
                                <asp:HyperLink ID="hyLinkAdminPurchase" runat="server" Text="Køb" ForeColor="#FF9933"></asp:HyperLink></li>
                            <li>
                                <asp:HyperLink ID="hyLinkAdminCategory" runat="server" Text="Kategori"></asp:HyperLink></li>
                        </ul>
                    </li>
                    <li>
                        <asp:HyperLink ID="hyLinkNewsHandling" runat="server" Text="Nyhedshåndtering"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hyLinkEditInformation" runat="server" Text="Ret Information"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hyLinkContactPerson" runat="server" Text="kontaktpersoner"></asp:HyperLink></li>
                    <li><asp:HyperLink ID="hylinkDepartment" runat="server" Text="Afdelinger"></asp:HyperLink></li>
                    <li>
                        <asp:HyperLink ID="hyLinkResetUsers" runat="server" Text="Reset Brugere"></asp:HyperLink></li>
                </ul>
            </div>
        </div>

        <div id="adminContentBox" class="contentBoxSmall floatLeft">
            <div id="adminContentBoxContent">
                <div>
                    <asp:Label ID="lblPurchaseHeader" runat="server" Text="Køb" CssClass="contentTitle"></asp:Label>
                </div>
                <br />
                <div id="adminNewsPaginationTop" class="adminPaginationBox floatLeft">
                    <div class="floatLeft">
                        <asp:Panel ID="panTopPagination" runat="server">
                        </asp:Panel>
                    </div>
                    <div class="floatRight">
                        <asp:Label ID="lblResultsPerPage" runat="server" Text="Resultater pr. side: "></asp:Label>
                        <asp:DropDownList ID="ddlResultsPerPage" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlResultsPerPage_SelectedIndexChanged">
                            <asp:ListItem>5</asp:ListItem>
                            <asp:ListItem>10</asp:ListItem>
                            <asp:ListItem>20</asp:ListItem>
                            <asp:ListItem>30</asp:ListItem>
                        </asp:DropDownList>
                    </div>
                </div>
                <asp:GridView ID="gvAdminPurchase" runat="server" AutoGenerateColumns="False" Width="754px" CssClass="gridSpacing" OnRowDataBound="gvAdminPurchase_RowDataBound" OnRowDeleting="gvAdminPurchase_RowDeleting">
                    <HeaderStyle BackColor="#EFEFEF" Height="40px" />
                    <AlternatingRowStyle BackColor="#EFEFEF" />
                    <Columns>
                        <asp:HyperLinkField DataNavigateUrlFields="PurchaseID" DataNavigateUrlFormatString="~/Exchange/purchaseDetails.aspx?pid={0}" DataTextField="Title" HeaderText="Titel" ControlStyle-CssClass="link" ItemStyle-Height="40px">
                            <ControlStyle CssClass="link"></ControlStyle>

                            <ItemStyle Height="40px"></ItemStyle>
                        </asp:HyperLinkField>
                        <asp:TemplateField HeaderText="Kategori">
                            <ItemTemplate>
                                <asp:Label ID="lblCategory" runat="server"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="CreatedDate" DataFormatString="{0:dd-MM-yyyy}" HeaderText="Oprettelses Dato" />
                        <asp:TemplateField HeaderText="Status">
                            <ItemTemplate>
                                <asp:Label ID="lblStatus" runat="server" Text='<%# Eval("IsActive") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:CommandField ShowCancelButton="False" ShowDeleteButton="True" ButtonType="Link" ControlStyle-CssClass="link" DeleteText="Slet" EditText="Rediger">
                            <ControlStyle CssClass="link"></ControlStyle>
                        </asp:CommandField>
                        <asp:TemplateField InsertVisible="False" Visible="False">
                            <ItemTemplate>
                                <asp:Label ID="lblPurchaseID" runat="server" Text='<%# Eval("PurchaseID") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <div class="floatLeft">
                    <asp:Panel ID="panPagination" runat="server">
                    </asp:Panel>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
